#include <stdio.h>
#define LOOPCOUNT 500
#define NUMINPUT 5

float hidden_weight[5],hidden_value[5];

void updateNodeValue(int nodeNum) {
 //compute new value of Hidden_node[num] 
}

float getOutput() {
float returnVal;
	return =0;
	for (int i = 0; i < 5; i++ ) {
		//returnVal  = formula
	}
	return returnVal;
}

void adjustWeight(float outputVal, float expeteted) {
//readjsut all weights
}

//stub
void init_weights() {
	for (int i = 0; i < 5; i++ ) {
		hidden_eight[i] = rand();
		}
}



int main() {
float result[NUMINPUT];
float input[NUMINPUT][2]; //can be site accourding to how many inputs we want to train
boolean learn; //set via command line?

init_weights();

	for (int j = 0; j < LOOPCOUNT; j++ ) {
		
		for (int i = 0; i < NUMINPUT; i++ ) { 
	
			for (int k = 0; k < 5; k++ ) {
				updateNodeValue(k)
			}//end hidden update
			
			result[i] = getOutput();
			
			if(learn) { adjustWeight(result[i], input[i][1]); }
			else break;
		} //end sample loop
				
	}//end iteration

}





